﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion

namespace Weazel.Badger.Vhdl.Types
{
  public class BinaryConversionResult
  {
    private TypeConversionResult leftConversions;
    private TypeConversionResult rightConversions;
    private BinaryTypeMap map;

    public TypeConversionResult LeftConversions
    {
      get
      {
        return leftConversions;
      }
      set
      {
        leftConversions = value;
      }
    }

    public TypeConversionResult RightConversions
    {
      get
      {
        return rightConversions;
      }
      set
      {
        rightConversions = value;
      }
    }

    public BinaryTypeMap Map
    {
      get
      {
        return map;
      }
      set
      {
        map = value;
      }
    }

    public BinaryConversionResult(TypeConversionResult l, TypeConversionResult r, BinaryTypeMap map)
    {
      this.leftConversions = l;
      this.rightConversions = r;
      this.map = map;
    }

    public override string ToString()
    {
      StringBuilder str = new StringBuilder();
      str.Append(map.ToString() + "\n");
      str.Append(leftConversions.ToString() + "\n");
      str.Append(rightConversions.ToString() + "\n");
      return str.ToString();
    }
  }
}
